import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import getAjax from "@/assets/api/getAjax";
import "@/assets/less/common.less";
import "vant/lib/index.css";
import * as echarts from "echarts";
import dayjs from "dayjs";
import TDesign from "tdesign-vue";
// 引入组件库全局样式资源
import "tdesign-vue/es/style/index.css";

Vue.use(TDesign);

Vue.config.productionTip = false;
Vue.prototype.$echarts = echarts;

// 挂载getAjax
Vue.prototype.getAjax = getAjax;
Vue.prototype.dayjs = dayjs;

new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");
